export type ApiResponse<T = any> =
  | {
      code: number;
      message: string;
      success: boolean;
      timestamp: string;
      data: T;
    }
  | string;

export type QueryParams<T = any> = {
  currentPage: number;
  pageSize: number;
  orderBy?: {
    [key: string]: 'ASC' | 'DESC';
  };
  filters?: T;
  [key: string]: any;
};

export type PaginationResult<T = any> = {
  currentPage: number;
  totalPages: number;
  total: number;
  pageSize: number;
  list: T[];
};
